package com.woniuxy.micromallserver.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 品类实体类
 * @author Chan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Category implements Serializable {

  /**品类id*/
  private Integer categoryId;

  /**品类名称*/
  private String categoryName;

  /**品类顺序，决定显示顺序的先后*/
  private Integer categoryOrder;

  /**子品类*/
  private String subcategory;

  /**创建时间*/
  private String createTime;

  /**起始时间查询*/
  private String beginCreateTime;

  /**结束时间查询*/
  private String endCreateTime;

  /**品类描述*/
  private String categoryDescription;

  /**品类状态，0-已经下架、1-正上架、2-已删除*/
  private Integer categoryStatus;

  public Category(Integer categoryId, String categoryName, Integer categoryOrder, String subcategory, String createTime, String categoryDescription, Integer categoryStatus) {
    this.categoryId = categoryId;
    this.categoryName = categoryName;
    this.categoryOrder = categoryOrder;
    this.subcategory = subcategory;
    this.createTime = createTime;
    this.categoryDescription = categoryDescription;
    this.categoryStatus = categoryStatus;
  }

}
